package com.niiwoo.civet.user.service.duboo;

import com.alibaba.dubbo.config.annotation.Service;
import com.niiwoo.civet.user.dto.request.UserReportCreateRequestDTO;
import com.niiwoo.civet.user.service.UserReportDubboService;
import com.niiwoo.civet.user.service.local.UserReportLocalService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;

@Slf4j
@Service(version = "1.0.0")
public class UserReportDubboServiceImpl implements UserReportDubboService {

    @Autowired
    private UserReportLocalService userReportLocalService;

    /**
     * 保存用户举报信息
     *
     * @param userReportSaveRequestDTO
     * @return void
     * @author zzl
     * @date 2018/1/19 17:04
     */
    @Override
    public void createUserReport(UserReportCreateRequestDTO userReportSaveRequestDTO) {
        log.info("createUserReport方法接收到请求:{}" , userReportSaveRequestDTO);
        userReportLocalService.createUserReport(userReportSaveRequestDTO);
    }
}
